OUT := a.out
SRCS := $(wildcard *.cc)
OBJS := $(patsubst %.cc,%.o,$(SRCS))

CC := g++
COM_OP := -Wall -g 

$(OUT): $(OBJS)
	$(CC) $^ -o $@
%.o : %.c
	    $(CC) -c $< -o $@ $(COM_OP)

.PHONY: clean rebuild all
clean:
	    $(RM) $(OUT) $(OBJS)

rebuild: clean $(OUT)

